#include <JeeLib.h>
#include <GLCD_ST7565.h>
//#include <RTClib.h>
//#include <Wire.h>
#include "Thermostat.h" 
#include <OneWire.h>		    // http://www.pjrc.com/teensy/td_libs_OneWire.html
#include <DallasTemperature.h>      // http://download.milesburton.com/Arduino/MaximTemperature/ (3.7.2 Beta needed for Arduino 1.0)

Thermostat thermostat;

//--------------------------------------------------------------------------------------------
// Setup
//--------------------------------------------------------------------------------------------
void setup(){
  //Serial.begin(9600);
  //Serial.println("setup");
  //give everything time to settle
  delay(100);
}

//--------------------------------------------------------------------------------------------
// Loop
//--------------------------------------------------------------------------------------------
void loop(){
  //Serial.println("loop 1");
  thermostat.update();
  //Serial.println("loop 2");
  thermostat.draw();
  //Serial.println("loop 3");
}
